package com.sakura.mall.order.orderItem.service;

import com.sakura.mall.common.response.Page;
import com.sakura.mall.order.orderItem.domain.entity.OrderItemEntity;
import com.sakura.mall.order.orderItem.domain.request.AddOrderItemRequest;
import com.sakura.mall.order.orderItem.domain.request.UpdateOrderItemRequest;
import com.sakura.mall.order.orderItem.domain.request.OrderItemPageRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sakura.mall.order.orderItem.domain.vo.OrderItemVo;

/**
 * 订单项信息 service
 *
 * @author sakura
 */
public interface OrderItemService extends IService<OrderItemEntity> {
    

    /**
     * 分页查询
     *
     * @param request 请求
     * @return ret
     */
    Page<OrderItemVo> queryPage(OrderItemPageRequest request);

    /**
    * 注册用户
    *
    * @param request 请求
    */
    void add(AddOrderItemRequest request);
    

    /**
     * 更新用户
     *
     * @param id      id
     * @param request 更新
     */
    void updateById(Long id, UpdateOrderItemRequest request);
}
